package com.zsj.service_user.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *

 * </p>
 *
 * @author zsj
 * @since 2022-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AppUser对象", description="")
public class AppUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @ApiModelProperty(value = "用户账号")
    private String userName;

    @ApiModelProperty(value = "用户密码")
    private String userPassword;

    @ApiModelProperty(value = "用户个性名称")
    @TableField("user_nickName")
    private String userNickname;


    @ApiModelProperty(value = "用户个性名称")
    @TableField("user_balance")
    private String userBalance;

    @ApiModelProperty(value = "用户生日")
    @TableField("user_birthday")
    private String userBirthday;

    @ApiModelProperty(value = "用户性别")
    private String userSex;

    @ApiModelProperty(value = "用户头像地址")
    private String userAvatar;

    @ApiModelProperty(value = "当前用户注册时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private String createTime;

    @ApiModelProperty(value = "当前用户销毁时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String destroyTime;

    @ApiModelProperty(value = "当前用户是不是已经被删除")
    private Integer isDeleted;

    @ApiModelProperty(value = "当前用户是不是vip")
    private Integer isVip;

    public AppUser() {
    }
}
